<title>About this tool:</title>
This is a basic light barrier circuit. The circuit is supplied with 12V. A phototransistor creates a voltage divider with the 10k resistor.

When no light shines on the phototransistor, small leakage current called dark current flows from collector to emitter. The voltage Vce will increase towards 12V. When the base is exposed to light, the base current is produced which is proportional to the light intensity. At maximum light intensity, the voltage Vce will drop to the specified saturated voltage level of the selected phototransistor type (Vce, sat).

This circuit allows setting a switching threshold via the resistors R1 and R2. The operational amplifier compares the voltage Vce with the voltage set via the voltage divider. If Vce > Vref, the output will be high and the LED will light up. If Vce < Vref, the output will be low and the LED will be dark.

So the voltage divider R1 and R2 can be used to set the switching threshold of the light barrier. The LED indicates if the light barrier is open or interrupted (depending on the switching threshold).

<_image>Calc10_sub08_pic02_small.png</_image>

A simplified equivalent circuit of a phototransistor is a reverse photodiode connected to the base and the collector of a transistor.

<_image>Calc10_sub08_pic03.png</_image>
